import java.io.*;
import java.util.List;

public class Main {

	public static void main(String[] args) {

		System.out.println("");
		System.out.println("Pirate 2.0.0 Alpha - Licensed under the MIT licence"); // Show welcome message
		System.out.println("");

		VKScraper scraper = new VKScraper(); // Create new instance of VK scraper
		Console console = System.console(); // Get console

		String username = console.readLine("username: "); // Get username from console
		String password = new String( console.readPassword("password: ") ); // Get password from console as string

	    System.out.println("Logging in..."); // Show status message

	    // Check for login
	    if( scraper.login(username, password) ) {

	    	 String query = console.readLine("Search query: "); // Get user input

	    	 List<Song> searchResults = scraper.search(query, 0);
	    	
	    }

	}

}